package com.example.Dao;

import com.example.Domain.Student;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface StudentDao {

    int AddStudent(Student student);

    // 删除学生
    int DeleteStudent(int id);

    // 查询单个学生
    Student SelectStudentById(String username);

    // 查询所有学生
    List<Student> SelectAllStudent();

    // 根据用户名查询学生
    Student SelectStudentByUsername(String username);
}
